﻿using HiShing.TongDanGuanJia.DeviceProperties;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiShing.TongDanGuanJia.OnNetaApis.Dto.OneNet
{
    public class DeviceInfo
    {
        public string create_time { get; set; }
        public string act_time { get; set; }
        public string auth_info { get; set; }
        public string last_ct { get; set; }
        public string title { get; set; }
        public bool online { get; set; }
        public Location location { get; set; }
        public string id { get; set; }
        public List<Datastream> datastreams { get; set; }
    }

    public class Location
    {
        public float lat { get; set; }
        public float lon { get; set; }
    }

    public class Datastream
    {
        public int sort { get; set; }
        public string create_time { get; set; }
        public string uuid { get; set; }
        public string id { get; set; }
        public string displayName { get; set; }
    }
}
